package yx.model;

import java.sql.Timestamp;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Version;
import org.hibernate.annotations.GenericGenerator;

/**
 * BsInvitation entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "bs_invitation", catalog = "")
public class BsInvitation implements java.io.Serializable {

	// Fields

	private Integer id;
	private Integer version;
	private Integer forumZone;
	private String forumZoneName;
	private String title;
	private String content;
	private Integer creatorId;
	private String creatorName;
	private Timestamp createTime;
	private Integer replyNum;
	private Integer readNum;
	private Timestamp updateTime;
	private String updaterName;
	private String deleteFlag;
	private Integer optId;
	private Timestamp optTime;

	// Constructors

	/** default constructor */
	public BsInvitation() {
	}

	/** full constructor */
	public BsInvitation(Integer forumZone, String forumZoneName, String title, String content, Integer creatorId, String creatorName, Timestamp createTime, Integer replyNum, Integer readNum, Timestamp updateTime, String updaterName, String deleteFlag, Integer optId, Timestamp optTime) {
		this.forumZone = forumZone;
		this.forumZoneName = forumZoneName;
		this.title = title;
		this.content = content;
		this.creatorId = creatorId;
		this.creatorName = creatorName;
		this.createTime = createTime;
		this.replyNum = replyNum;
		this.readNum = readNum;
		this.updateTime = updateTime;
		this.updaterName = updaterName;
		this.deleteFlag = deleteFlag;
		this.optId = optId;
		this.optTime = optTime;
	}

	// Property accessors
	@GenericGenerator(name = "generator", strategy = "increment")
	@Id
	@GeneratedValue(generator = "generator")
	@Column(name = "ID", unique = true, nullable = false)
	public Integer getId() {
		return this.id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	@Version
	@Column(name = "VERSION")
	public Integer getVersion() {
		return this.version;
	}

	public void setVersion(Integer version) {
		this.version = version;
	}

	@Column(name = "FORUM_ZONE")
	public Integer getForumZone() {
		return this.forumZone;
	}

	public void setForumZone(Integer forumZone) {
		this.forumZone = forumZone;
	}

	@Column(name = "FORUM_ZONE_NAME", length = 32)
	public String getForumZoneName() {
		return this.forumZoneName;
	}

	public void setForumZoneName(String forumZoneName) {
		this.forumZoneName = forumZoneName;
	}

	@Column(name = "TITLE", length = 64)
	public String getTitle() {
		return this.title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	@Column(name = "CONTENT")
	public String getContent() {
		return this.content;
	}

	public void setContent(String content) {
		this.content = content;
	}

	@Column(name = "CREATOR_ID")
	public Integer getCreatorId() {
		return this.creatorId;
	}

	public void setCreatorId(Integer creatorId) {
		this.creatorId = creatorId;
	}

	@Column(name = "CREATOR_NAME", length = 32)
	public String getCreatorName() {
		return this.creatorName;
	}

	public void setCreatorName(String creatorName) {
		this.creatorName = creatorName;
	}

	@Column(name = "CREATE_TIME", length = 19)
	public Timestamp getCreateTime() {
		return this.createTime;
	}

	public void setCreateTime(Timestamp createTime) {
		this.createTime = createTime;
	}

	@Column(name = "REPLY_NUM")
	public Integer getReplyNum() {
		return this.replyNum;
	}

	public void setReplyNum(Integer replyNum) {
		this.replyNum = replyNum;
	}

	@Column(name = "READ_NUM")
	public Integer getReadNum() {
		return this.readNum;
	}

	public void setReadNum(Integer readNum) {
		this.readNum = readNum;
	}

	@Column(name = "UPDATE_TIME", length = 19)
	public Timestamp getUpdateTime() {
		return this.updateTime;
	}

	public void setUpdateTime(Timestamp updateTime) {
		this.updateTime = updateTime;
	}

	@Column(name = "UPDATER_NAME", length = 32)
	public String getUpdaterName() {
		return this.updaterName;
	}

	public void setUpdaterName(String updaterName) {
		this.updaterName = updaterName;
	}

	@Column(name = "DELETE_FLAG", length = 1)
	public String getDeleteFlag() {
		return this.deleteFlag;
	}

	public void setDeleteFlag(String deleteFlag) {
		this.deleteFlag = deleteFlag;
	}

	@Column(name = "OPT_ID")
	public Integer getOptId() {
		return this.optId;
	}

	public void setOptId(Integer optId) {
		this.optId = optId;
	}

	@Column(name = "OPT_TIME", length = 19)
	public Timestamp getOptTime() {
		return this.optTime;
	}

	public void setOptTime(Timestamp optTime) {
		this.optTime = optTime;
	}

}